package com.xxadmin.usercenter.vo.request;

import com.xxadmin.common.validate.ValidGroup1;
import com.xxadmin.common.validate.ValidGroup2;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class MenuInfoVO {

    @NotNull(message = "ID 不能为空",groups = {ValidGroup2.class})
    private Integer id;

    @NotBlank(message = "菜单编码不能为空",groups = {ValidGroup1.class, ValidGroup2.class})
    private String menuCode;

    @NotBlank(message = "菜单编码名称",groups = {ValidGroup1.class, ValidGroup2.class})
    private String menuName;

    @NotBlank(message = "所属渠道",groups = {ValidGroup1.class, ValidGroup2.class})
    private String channelCode;

    private String parentCode;

    private Integer menuOrder;

    @NotBlank(message = "URL 不能为空",groups = {ValidGroup1.class, ValidGroup2.class})
    private String url;

    @NotBlank(message = "状态不能为空",groups = {ValidGroup2.class})
    private String status;
}